package com.ztesoft.report.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ztesoft.report.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 字典维护
 * </p>
 *
 * @author y3tu
 * @since 2018-06-12
 */
@TableName("sys_dict")
public class SysDict extends BaseEntity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 字典编码
     */
	@TableField("dict_code")
	private String dictCode;
    /**
     * 字典名称
     */
	@TableField("dict_name")
	private String dictName;
    /**
     * 字典类型。暂时没用，默认为0，
     */
	@TableField("dict_type")
	private Integer dictType;
    /**
     * 描述
     */
	private String remarks;
    /**
     * 创建人
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 更新人
     */
	@TableField("update_by")
	private String updateBy;
    /**
     * 更新时间
     */
	@TableField("update_date")
	private Date updateDate;
    /**
     * 删除标识。0：正常，1：删除
     */
	@TableField("status")
	private Integer status;

	/**
	 * 用于修改判断的dict_code
	 */
	private String oldDictCode;


	public String getDictCode() {
		return dictCode;
	}

	public void setDictCode(String dictCode) {
		this.dictCode = dictCode;
	}

	public String getDictName() {
		return dictName;
	}

	public void setDictName(String dictName) {
		this.dictName = dictName;
	}

	public Integer getDictType() {
		return dictType;
	}

	public void setDictType(Integer dictType) {
		this.dictType = dictType;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.dictCode;
	}

	public String getOldDictCode() {
		return oldDictCode;
	}

	public void setOldDictCode(String oldDictCode) {
		this.oldDictCode = oldDictCode;
	}

	@Override
	public String toString() {
		return "SysDict{" +
			", dictCode=" + dictCode +
			", dictName=" + dictName +
			", dictType=" + dictType +
			", remarks=" + remarks +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			"}";
	}
}
